<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\AsyncQueue\Driver\RedisDriver;

return [
    'default' => [
        'driver' => RedisDriver::class,
        'redis' => [
            'pool' => 'default',
        ],
        'channel' => '{queue}',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'concurrent' => [
            'limit' => 10,
        ],
        'max_messages' => 0,
    ],
//    'fast' => [
//        'driver' => RedisDriver::class,
//        'redis' => [
//            'pool' => 'default'
//        ],
//        'channel' => '{fast.queue}',
//        'timeout' => 2,
//        'retry_seconds' => 5,
//        'handle_timeout' => 10,
//        'processes' => 1,
//        'concurrent' => [
//            'limit' => 5,
//        ],
//    ],
	'normalOrder' => [
        'driver' => RedisDriver::class,
        'redis' => [
            'pool' => 'default'
        ],
        'channel' => '{normalOrder.queue}',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'concurrent' => [
            'limit' => 10,
        ],
    ],
    'normalRollBack' => [
        'driver' => RedisDriver::class,
        'redis' => [
            'pool' => 'default'
        ],
        'channel' => '{normalRollBack.queue}',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'concurrent' => [
            'limit' => 10,
        ],
    ],
    'spikeOrder' => [
        'driver' => RedisDriver::class,
        'redis' => [
            'pool' => 'default'
        ],
        'channel' => '{spikeOrder.queue}',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'concurrent' => [
            'limit' => 10,
        ],
    ],
    'spikeRollBack' => [
        'driver' => RedisDriver::class,
        'redis' => [
            'pool' => 'default'
        ],
        'channel' => '{spikeRollBack.queue}',
        'timeout' => 2,
        'retry_seconds' => 5,
        'handle_timeout' => 10,
        'processes' => 1,
        'concurrent' => [
            'limit' => 10,
        ],
    ],
	'normalBuy' => [
	    'driver' => RedisDriver::class,
	    'redis' => [
	        'pool' => 'default'
	    ],
	    'channel' => '{normalBuy.queue}',
	    'timeout' => 2,
	    'retry_seconds' => 5,
	    'handle_timeout' => 10,
	    'processes' => 1,
	    'concurrent' => [
	        'limit' => 10,
	    ],
	],
	'spikeBuy' => [
	    'driver' => RedisDriver::class,
	    'redis' => [
	        'pool' => 'default'
	    ],
	    'channel' => '{spikeBuy.queue}',
	    'timeout' => 2,
	    'retry_seconds' => 5,
	    'handle_timeout' => 10,
	    'processes' => 1,
	    'concurrent' => [
	        'limit' => 10,
	    ],
	],
];
